import QtQuick
import QtQuick.Layouts

import "../common"
import "../../communication"
import "../../communication/gameStatePrivate"

Item{

    property GameState action:EventBus.currentGame?EventBus.currentGame.gameState:null
    property PlayerRound playerRount:action.playerRoundState

    StackLayout{
        anchors.fill: parent

        currentIndex: {

            var ret = -1
            if(playerRount.actOnPotionState.active)
            {
                ret = 0
            }
            if(playerRount.selectingItemsState.active)
            {
                ret = 1
            }
            if(playerRount.waitingState.active)
            {
                ret = 2
            }

            return ret
        }

        PotionMenu{

        }

        SelectItemMenu{

        }

        WaitingMenu{

        }

    }


}
